//
//  Macro.h
//  EStickApp
//
//  Created by yximac on 14-6-6.
//  Copyright (c) 2014年 xyx. All rights reserved.
//

#ifndef EStickApp_Macro_h
#define EStickApp_Macro_h


#define iPhone5 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 1136), [[UIScreen mainScreen] currentMode].size) : NO)
#define NLSystemVersionGreaterOrEqualThan(version) ([[[UIDevice currentDevice] systemVersion] floatValue] >= version)
#define IOS7_OR_LATER NLSystemVersionGreaterOrEqualThan(7.0)


#define PLIST_VALUE_INTENSITY @"IntensityValue" //强度控制中的数值
#define PLIST_VALUE_SHAKE_MODE @"ShakeModeValue" //震动控制中1-9按钮的数值
#define PLIST_VALUE_SHAKE_STRENTH @"ShakeStrengthValue" //震动控制中柔和、普通、剧烈三个数值
#define PLIST_VALUE_PRIVATE_MODE @"PrivateMode"     //私人定制的数组值
#define PLIST_VALUE_VOICE_MOTOR_DELTA @"MotorDelta" //声音控制里马达增幅数值

#define MYBUNDLE_NAME @ "/DefaultMusics.bundle"  //本地默认音乐库文件名

#define MUSIC_CURRENT_ARTIST @"Current_Artist"
#define MUSIC_CURRENT_ALBUM @"Current_Album"
#define MUSIC_CURRENT_TITLE @"Current_Title"

#define NOTIFICATION_UPDATE_MUSIC_DETAIL_PAGE_LABEL_INFO @"Update_Music_Detail_Label_Info"
#define NOTIFICATION_UPDATE_MUSIC_PLAY_PA_UP @"Music_Play_PaUp"
#define NOTIFICATION_UPDATE_MUSIC_PLAY_PA_DOWN @"Music_Play_PaDown"
#define NOTIFICATION_UPDATE_MUSIC_REFRESH_LIST @"Music_Refresh_list"
#define NOTIFICATION_UPDATE_MUSCI_CURRENT_INDEX @"Music_Will_Play"
#define NOTIFICATION_UPDATE_MUSIC_CHANGE_PALY_MODE @"Music_Change_PlayMode"//改变音乐播放模式
#define NOTIFICATION_UPDATE_MUSIC_PLAY_OR_PAUSE @"Music_Play_Pause" //开始或暂停

#define PLIST_IS_MUSIC_PLAYING @"Music_is_Playing"    //记录音乐是否正在播放

#define UMENG_APPKEY @"544679cefd98c5c342008a9f"

#define NOTIFICATION_MUSIC_VOLUME_CHANGED @"kLexyMusicPlayerVolumeChanged"

#define kLexyNoteSyncMainKey @"LexyNote"
#define kLexyNoteTextKey @"LexyNoteText"
#define kLexyNoteTypeKey @"LexyNoteType"

#define kLexyDidEnterForegroundNotify @"kLexyDidEnterForground"

typedef enum{
    shakeStrengthSoft = 0,
    shakeStrengthNormal,
    shakeStrengthCrazy
}shakeStrengthValue;

#endif
